package cn.itsource.org.mapper;

import cn.itsource.common.mapper.BaseMapper;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.domain.Menu;
import cn.itsource.org.domain.Permission;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 查询所有的 员工列表
     * @return
     */
    List<Employee> queryAllEmployee();


    Employee findByPhone(String phone);

    Employee findByLoginInfoId(Long id);

    List<Permission> getPermissions(Long id);

    List<Menu> getMenu(Long id);
}
